name = input("请输入姓名：")
sfz = input("请输入18位的身份证号：")
year = sfz[6:10]
month = sfz[10:12]
date = sfz[12:14]
sex = sfz[16:17]
sex = int(sex)
if sex%2:
    sex = "男"
else:
    sex = "女"
print("你好:",name, "你是",sex,"生。你的生日是:",year,"年",month,"月",date,"日")